CC = gcc
RM = rm
CFLAGS = -pipe -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes

LIBS = -lccn -lcrypto

SRCS = nac_helper.c nac_gw.c
PROG = nac_gw

OBJS = ${SRCS:.c=.o}

default all: $(PROG)

nac_gw: nac_helper.o nac_gw.o
	$(CC) $(CFLAGS) -o $@ nac_helper.o nac_gw.o $(LIBS)

rmtmp:
	$(RM) *.o

clean: rmtmp
	$(RM) $(PROG)

.c.o:
	$(CC) $(CFLAGS) -c $<

.PHONY: all rmtmp clean
